package com.leyou.vo;

import com.leyou.entity.BrandEntity;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

public class BrandSaveParamVo extends BrandEntity {

    // 品品牌所属的分类id
    private String cids;

    public List<Long> getCids() {
        if(cids != null){
            List<Long> longs = new ArrayList<>();
            String[] split = cids.split(",");
            for (int i = 0; i < split.length; i++) {
                longs.add(Long.parseLong(split[i]));
            }
            return longs;
        }
       return  null;
    }

    public void setCids(String cids) {
        this.cids = cids;
    }
}
